//
//  CalendarCell.h
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 2017/11/19.
//  Copyright © 2017年 com.xtion.crm. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CalendarCell;
@protocol CalendarCellDelegate <NSObject>

@optional
-(void)didTouchDayView:(CalendarCell*)calendarCell dateSelected:(NSDate*)dateSelected;
- (void)calendarDidLoadPreviousPage:(CalendarCell *)calendarCell dateSelected:(NSDate*)dateSelected;
- (void)calendarDidLoadNextPage:(CalendarCell *)calendarCell dateSelected:(NSDate*)dateSelected;
@end

@interface CalendarCell : XUITableViewCell

@property(nonatomic,weak) id<CalendarCellDelegate> delegate;

- (void)setDate:(NSDate*)date;
- (void)createDateEvents:(NSArray*)upArr downArr:(NSArray*)downArr;
-(void)refreshCalendar;
+(CGFloat)caleHeight;
@end
